<template>
	<div class="season">
		<article>
			<h3>当季目的地</h3>
			<label>你的朋友圈的旅行内容，我们包了</label>
			<router-link to="/">更多<i class="iconfont">&#xe775;</i></router-link>
		</article>
		<div class="menu">
			<ul>
				<li v-for="item in arr" :key="item.id" :class="{'default' :iscur==item.id}" @click="iscur=item.id">{{item.name}}</li>
			</ul>
		</div>
		<Domestic v-if="iscur==1"></Domestic>
		<Leave v-if="iscur==2"></Leave>
	</div>
</template>

<script>
	import Domestic from './GN.vue'
	import Leave from './GW.vue'
	export default{
		name:'Season',
		components:{
			Domestic,
			Leave
		},
		data(){
			return{
				arr:[
					{id:1,name:'国内'},
					{id:2,name:'出境'},
				],
				iscur:1
			}
		}
	}
</script>

<style scoped>
	.season{
		background-color: white;
		border-radius: 0.5rem;
		height: 8.3rem;
	}
	.season article{
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.season article h3{
		font-size: 0.45rem;
		font-weight: bold;
		width: 30%;
		text-indent: 1em;
		margin-top: 0.3rem;
	}
	.season article label{
		background-color: #fff3ea;
		color: #ffa951;
		padding: 0.1rem;
		border-radius: 0.1rem;
		margin-top: 0.3rem;
		margin-right: 0.5rem;
	}
	.season article a{
		font-size: 0.35rem;
		width: 15%;
		text-align: right;
		text-decoration: none;
		color: black;
		margin-right: 0.1rem;
		margin-top: 0.3rem;
	}
	.menu{
		width: 100%;
		padding-top: 0.3rem;
		padding-bottom: 0.3rem;
	}
	.menu ul{
		display: flex;
	}
	.menu ul li{
		width: 20%;
		line-height: 0.6rem;
		border: 0.01rem solid lightgray;
		text-align: center;
		border-radius: 0.3rem;
		font-size: 0.3rem;
		margin-left: 0.4rem;
		color: dimgray;
	}
	.menu .default{
		color: goldenrod;
		font-size: 0.35rem;
		font-weight: bold;
	}
</style>
